package com.william.jdbcplus.core.util.datameta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
@ApiModel("表索引信息")
public class TableMetaIndexInfo {
    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "非唯一索引")
    private Boolean nonUnique;

    @ApiModelProperty(value = "索引名称")
    private String indexName;

    @ApiModelProperty(value = "索引类型")
    private Short type;

    @ApiModelProperty(value = "索引列顺序号")
    private Short ordinalPosition;

    @ApiModelProperty(value = "列名")
    private String columnName;

    @ApiModelProperty(value = "排序")
    private String ascOrDesc;

    @ApiModelProperty(value = "基数")
    private Integer cardinality;
}
